- if can?(current_user, :push_code, @project)
  .pull-right
    #new-branch{'data-path' => can_create_branch_namespace_project_issue_path(@project.namespace, @project, @issue)}
      = link_to namespace_project_branches_path(@project.namespace, @project, branch_name: @issue.to_branch_name, issue_iid: @issue.iid), method: :post, class: 'btn has-tooltip', title: @issue.to_branch_name, disabled: 'disabled' do
        .checking
          %i.fa.fa-spinner.fa-spin
          正在检查分支
        .available(style="display: none")
          %i.fa.fa-code-fork
          新分支
        .unavailable(style="display: none")
          %i.fa.fa-exclamation-triangle
          新分支不可用
